package com.cmxh.shipper.service.impl;

import com.cmxh.shipper.mapper.AddressBookMapper;
import com.cmxh.shipper.pojo.AddressBook;
import com.cmxh.shipper.service.AddressBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AddressBookServiceimpl implements AddressBookService {

@Autowired
private AddressBookMapper selectStation;




    @Override//查询页面显示的所有数据
    public List<AddressBook> selectAddressBook(Integer uid) {
        return selectStation.selectAll(uid);
    }


    @Override
    public int insertAddressBook(AddressBook addressBook) {
        return selectStation.insertAddressBook(addressBook);
    }

    @Override
    public int deleteAddressBook(Integer id) {
        return selectStation.deleteAddressBook(id);
    }

    @Override
    public AddressBook selectAddressBook01(Integer zanjduanid ,  Integer uid) {
        return selectStation.selectAddressBook01(zanjduanid ,  uid);
    }

}
